package PTA_JAVA.JavaBase.JavaBase09;

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int f=sc.nextInt();
        double c=5.0*(f-32.0)/9;
        System.out.printf("%.2f",c);
    }
}
